Ext.define('Egitim.view.KatilimciForm', {
	extend: 'Egitim.lib.FormPanel',
    title: 'Katılımcı Bilgileri',
	alias: 'widget.katilimciform',

    // The form will submit an AJAX request to this URL when submitted
    url: 'katilimcis/save',
    autoScroll: true,
	katilimciId: '',
	items: [{
	        xtype:'fieldset',
	        columnWidth: 0.5,
	        title: '',
	        border: false,
	        collapsible: false,
	        defaults: {anchor: '100%'},
	        layout: 'column',
	        items :[{
	        	columnWidth: 0.5,
	        	xtype: 'container',
	        	layout: 'form',
		        defaultType: 'textfield',
	        	items: [{
	        		fieldLabel: 'Ad',
	        		name: 'ad',
	        		emptyText: 'Adı giriniz',
	        		allowBlank: false
	        	},{
	        		fieldLabel: 'Soyad',
	        		name: 'soyad',
	        		emptyText: 'Soyadı giriniz',
	        		allowBlank: false
	        	},{
	        		xtype: 'datefield',
	        		name : 'dogumTarihi',
	        		fieldLabel: 'D.Tarihi',
	        		emptyText: 'Doğum Tarihini giriniz',
	        		format: 'Y-m-d',
	        		allowBlank: false
	        	}]
	        }, {
	        	columnWidth: 0.5,
	        	xtype: 'container',
	        	layout: 'form',
	        	padding: '0 0 0 10',
	        	items: [{
	        		xtype: 'textfield',
	        		fieldLabel: 'Tel',
	        		name: 'tel',
	        		emptyText: 'Telefon giriniz',
	        		allowBlank: false
	        		
	        	},{
	        		xtype: 'textfield',
	        		name: 'mobil',
	        		fieldLabel: 'Mobil'
	        	},{
	        		xtype: 'textfield',
	        		name: 'eposta',
	        		emptyText: 'E-posta giriniz',
	        		fieldLabel: 'E-Posta',
	        		vtype: 'email',
	        		allowBlank: false
	        	}]
	        }]
	    },{
	        xtype:'fieldset',
	        columnWidth: 0.5,
	        title: 'Adres',
	        collapsible: false,
	        defaultType: 'textfield',
	        defaults: {anchor: '100%'},
	        layout: 'column',
	        items :[{
	        	columnWidth: 0.5,
	        	xtype: 'container',
	        	layout: 'form',
	        	items: [{
	        		xtype: 'textfield',
	        		fieldLabel: 'Sokak',
	        		name: 'sokak'
	        	},{
	        		xtype: 'textfield',
	        		fieldLabel: 'Cadde',
	        		name: 'cadde'
	        	},{
	        		xtype: 'textfield',
	        		fieldLabel: 'Diğer',
	        		name: 'adres'
	        	}]
	        }, {
	        	columnWidth: 0.5,
	        	xtype: 'container',
	        	layout: 'form',
	        	padding: '0 0 0 10',
	        	items: [{
	        		xtype: 'textfield',
	        		fieldLabel: 'Ülke',
	        		name: 'ulke'
	        	},{
	        		xtype: 'textfield',
	        		fieldLabel: 'İl',
	        		name: 'il'
	        	},{
	        		xtype: 'textfield',
	        		fieldLabel: 'İlçe',
	        		name: 'ilce'
	        	}]
	        }]
    }, {
    	xtype: 'fieldcontainer',
    	layout: 'hbox',
    	hidden: !YETKI.dummy,
    	align: 'center',
    	items: [{
        	xtype: 'label',
        	width: 150,
        	html: '<div><img id="cap-id" src="kayit/captcha?' + Math.random() + '" /></div>'
    	}, {
    		xtype: 'button',
    		height: 50,
    		iconCls: 'yenile',
    		handler: function (){
    			document.getElementById('cap-id').src = 'kayit/captcha?' + Math.random();
    		}
    	}, {
    		xtype: 'textfield',
    		height: 50,
    		name: 'captcha',
    		emptyText: 'Resimdeki yazı'
    	}]
    },{
        xtype: 'displayfield',
        fieldLabel: 'Grup',
        name: 'grup'
    },{
        name: 'grup',
		xtype: 'hidden'
    },{
        name: 'id',
		xtype: 'hidden'
    },{
        name: 'proje_id',
		xtype: 'hidden',
    }]
});